package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class ExecuteTaskDto{




        private Long taskId;

        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private String estimatedServerTime;

        @ApiModelProperty(value = "执行记录")
        @Length(max = 500, message = "执行记录不能超过500个字符")
        private String mark;

        @ApiModelProperty(value = "任务图片URL")
        private String taskImage;

        @ApiModelProperty(value = "更新人ID")
        private String updateBy;

}
